import { EntityObjectFactory } from './../entityObjectFactory';
const EntityObject = EntityObjectFactory.GetEntityObjectType();

export class Store extends EntityObject<Store>{
    constructor(ctx?) { super(ctx); }
    id: string = null;
    branchNo: number;
    address: string;
    phone: string;
    branchName: string;
    storeType: string;
    establishedTime: number;
    city: string;
    merchant: any;
    setting: StoreSetting;
    configs:StoreConfig[];

    toString() { return "Store"; }
}

interface StoreSetting {
    businessDuration: number;
}

interface StoreConfig{
    id:string;
    storeId:string;
    key:string;
    value:any;
    sets:any;
}